//
//  FPRepayPlanModel.h
//  FinanceProject
//
//  Created by 陈显摆 on 2025/1/23.
//

#import <JSONModel/JSONModel.h>

NS_ASSUME_NONNULL_BEGIN

@interface FPRepayPlanModel : JSONModel

@property (nonatomic , strong) NSString *repaymentDate; //!< 时间
@property (nonatomic , strong) NSString *installmentNumber; //!< 期数
@property (nonatomic , strong) NSString *amount; //!< 每期还金额 (利息+本金)
@property (nonatomic , strong) NSString *interest; //!< 利息.....
@property (nonatomic , strong) NSString *principal; //!< 本金


+ (void)getListWithAmount:(NSString *)amount instalments:(NSString *)instalments interestRate:(NSString *)interestRate sucess:(void (^)(NSInteger code , NSString *message , NSArray *list))success failure:(void (^)(NSError *error))failure;

+ (void)applyLoanWithParam:(NSDictionary *)param success:(void (^)(NSInteger code , NSString *message , BOOL isSuccess))success failure:(void (^)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
